package com.hugedata.cdn.util;

/**
 * 
 * 项目名称：cdn 类名称：ResultCode 类描述： 创建人：zhaoaihua 创建时间�?013-3-21 下午2:32:24 修改备注�?
 * 
 * @version
 * 
 */
public class ResultCode {

    // 成功响应
    public static final int    xmfSuccess            = 0;

    // task service error , begin 1000
    // 请求参数错误
    public static final int    paramError            = 1001;

    // 该节点id未分配机�?
    public static final int    NodeIDError           = 1002;

    // 该节点无分配的任�?
    public static final int    NodeTaskNullError     = 1003;

    // taskreport service error , begin 2000
    // 从请求中读取json数据时异�?
    public static final int    requestIoError        = 2001;

    // json数据格式不对
    public static final int    jsonPatternError      = 2002;

    // 客户端上报无效的结果数据
    public static final int    reportDataError       = 2003;

    // 客户端上报的探测时间格式不对
    public static final int    reportTimeError       = 2004;

    // 告警信息不完�?
    public static final int    alarmCheckError       = 2005;

    // 节点�?��任务书检�?
    public static final int    MaxTasksCheckError    = 2006;

    // 创建bill文件失败
    public static final int    fileCreatError        = 2010;

    // 切换bill文件失败
    public static final int    changeFileError       = 2011;

    // 文件流操作失�?
    public static final int    WriteFileError        = 2012;

    // 注册短信序列号失�?
    public static final int    regSMSError           = 2051;

    // 发�?短信失败
    public static final int    sendSMSError          = 2052;

    // 初始化mail参数失败
    public static final int    initMailError         = 2061;

    // 邮件发�?失败
    public static final int    sendMailError         = 2062;

    // 读取邮件配置内容失败
    public static final int    parseMailContentError = 2063;

    // 解析短信告警内容失败
    public static final int    parseSMSContentError  = 2064;

    // soap begin 6000
    public static final int    sendsmsParamError     = 6101;

    // 短信发�?人error
    public static final int    smsMobilesError       = 6102;

    // 短信达到月上�?
    public static final int    smsMobilesMaxError    = 6103;

    // system run error , begin 9000

    public static final int    XmppInitError         = 9000;

    // 数据库操作异�?
    public static final int    XmfStartUPError       = 9001;

    // 运行异常
    public static final int    SystemRunError        = 9002;

    // 数据库操作异�?
    public static final int    DBError               = 9010;

    // 初始话db数据error
    public static final int    initDataFormDBError   = 9011;

    // 序列化对象error
    public static final int    SerializeDataError    = 9012;

    // 序列化对象error
    public static final int    XmppBindError         = 9013;

    // -------------SOA-------------------------
    // base
    public static final String xmfSoaSuccess         = "0000";
    public static final String xmfSoaSuccessDesc     = "success";

    // userID错误，不存在或未填写
    public static final String USERError             = "1011";
    public static final String USERErrorDesc         = "userId is null or no this user";

    public static final String ParamError            = "1012";
    public static final String ParamErrorDesc        = "request param is null or error";

    public static final String TaskSyncError         = "1013";
    public static final String TaskSyncErrorDesc     = "task not push success";

    // task service error, begin 1100

}
